<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1 style="text-align: center">This is a heading</h1>

<p>上面的标题相对于页面居中对齐</p>

</body>
</html>